varying vec4 color, shadowTexCoord;

void main(){

  color= gl_Color;
  vec4 v= gl_ModelViewMatrix*vec4(gl_Vertex);
       v.z= v.z*v.w;

  shadowTexCoord= gl_TextureMatrix[0]*v;

  gl_Position = ftransform();
}